part of 'themes.dart';

// 明亮默认主题样式
const _kVanLightThemeData = {
  /// [VanRoot]主题样式
  "--van-black": Color(0xff000000),
  "--van-white": Color(0xffffffff),
  "--van-gray-1": Color(0xfff7f8fa),
  "--van-gray-2": Color(0xfff2f3f5),
  "--van-gray-3": Color(0xffebedf0),
  "--van-gray-4": Color(0xffdcdee0),
  "--van-gray-5": Color(0xffc8c9cc),
  "--van-gray-6": Color(0xff969799),
  "--van-gray-7": Color(0xff646566),
  "--van-gray-8": Color(0xff323233),
  "--van-red": Color(0xffee0a24),
  "--van-blue": Color(0xff1989fa),
  "--van-orange": Color(0xffff976a),
  "--van-orange-dark": Color(0xffed6a0c),
  "--van-orange-light":Color(0xfffffbe8),
  "--van-green": Color(0xff07c160),
  // "--van-gradient-red": "linear-gradient(to right, #ff6034, #ee0a24)",
  "--van-gradient-red": LinearGradient(colors: [Color(0xffff6034), Color(0xffee0a24)]),
  // "--van-gradient-orange": "linear-gradient(to right, #ffd01e, #ff8917)",
  "--van-gradient-orange": LinearGradient(colors: [Color(0xffffd01e), Color(0xffff8917)]),
  "--van-primary-color": "var(--van-blue)",
  "--van-success-color": "var(--van-green)",
  "--van-danger-color": "var(--van-red)",
  "--van-warning-color": "var(--van-orange)",
  "--van-text-color": "var(--van-gray-8)",
  "--van-text-color-2": "var(--van-gray-6)",
  "--van-text-color-3": "var(--van-gray-5)",
  "--van-active-color": "var(--van-gray-2)",
  "--van-active-opacity": 0.6,
  "--van-disabled-opacity": 0.5,
  "--van-background": "var(--van-gray-1)",
  "--van-background-2": "var(--van-white)",
  "--van-background-3": "var(--van-white)",
  "--van-padding-base": 4,
  "--van-padding-xs": 8,
  "--van-padding-sm": 12,
  "--van-padding-md": 16,
  "--van-padding-lg": 24,
  "--van-padding-xl": 32,
  "--van-font-bold": 600,
  "--van-font-size-xs": 10,
  "--van-font-size-sm": 12,
  "--van-font-size-md": 14,
  "--van-font-size-lg": 16,
  "--van-line-height-xs": 14,
  "--van-line-height-sm": 18,
  "--van-line-height-md": 20,
  "--van-line-height-lg": 22,
  "--van-base-font":
      "-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif",
  "--van-price-font": "avenir-heavy, 'PingFang SC', helvetica neue, arial, sans-serif",
  "--van-duration-base": 300,
  "--van-duration-fast": 300,
  "--van-ease-out": "ease-out",
  "--van-ease-in": "ease-in",
  "--van-border-color": "var(--van-gray-3)",
  "--van-border-width": 1,
  "--van-radius-sm": 2,
  "--van-radius-md": 4,
  "--van-radius-lg": 8,
  "--van-radius-max": 999,

  /// [VanButton]主题样式
  "--van-button-mini-height": 24,
  "--van-button-mini-padding": "0 var(--van-padding-base)",
  "--van-button-mini-font-size": "var(--van-font-size-xs)",
  "--van-button-small-height": 32,
  "--van-button-small-padding": "0 var(--van-padding-xs)",
  "--van-button-small-font-size": "var(--van-font-size-sm)",
  "--van-button-normal-padding": "0 15",
  "--van-button-normal-font-size": "var(--van-font-size-md)",
  "--van-button-large-height": 50,
  "--van-button-default-height": 44,
  "--van-button-default-line-height": "1.2",
  "--van-button-default-font-size": "var(--van-font-size-lg)",
  "--van-button-default-color": "var(--van-text-color)",
  "--van-button-default-background": "var(--van-background-2)",
  "--van-button-default-border-color": "var(--van-gray-4)",
  "--van-button-primary-color": "var(--van-white)",
  "--van-button-primary-background": "var(--van-primary-color)",
  "--van-button-primary-border-color": "var(--van-primary-color)",
  "--van-button-success-color": "var(--van-white)",
  "--van-button-success-background": "var(--van-success-color)",
  "--van-button-success-border-color": "var(--van-success-color)",
  "--van-button-danger-color": "var(--van-white)",
  "--van-button-danger-background": "var(--van-danger-color)",
  "--van-button-danger-border-color": "var(--van-danger-color)",
  "--van-button-warning-color": "var(--van-white)",
  "--van-button-warning-background": "var(--van-warning-color)",
  "--van-button-warning-border-color": "var(--van-warning-color)",
  "--van-button-border-width": "var(--van-border-width)",
  "--van-button-radius": "var(--van-radius-md)",
  "--van-button-round-radius": "var(--van-radius-max)",
  "--van-button-plain-background": "var(--van-white)",
  "--van-button-disabled-opacity": "var(--van-disabled-opacity)",
  "--van-button-icon-size": "1.2",
  "--van-button-loading-icon-size": 20,

  /// [VanCell]主题样式
  "--van-cell-font-size": "var(--van-font-size-md)",
  "--van-cell-line-height": 24,
  "--van-cell-vertical-padding": 10,
  "--van-cell-horizontal-padding": "var(--van-padding-md)",
  "--van-cell-text-color": "var(--van-text-color)",
  "--van-cell-background": "var(--van-background-2)",
  "--van-cell-border-color": "var(--van-border-color)",
  "--van-cell-active-color": "var(--van-active-color)",
  "--van-cell-required-color": "var(--van-danger-color)",
  "--van-cell-label-color": "var(--van-text-color-2)",
  "--van-cell-label-font-size": "var(--van-font-size-sm)",
  "--van-cell-label-line-height": "var(--van-line-height-sm)",
  "--van-cell-label-margin-top": "var(--van-padding-base)",
  "--van-cell-value-color": "var(--van-text-color-2)",
  "--van-cell-value-font-size": "inherit",
  "--van-cell-icon-size": 16,
  "--van-cell-right-icon-color": "var(--van-gray-6)",
  "--van-cell-large-vertical-padding": "var(--van-padding-sm)",
  "--van-cell-large-title-font-size": "var(--van-font-size-lg)",
  "--van-cell-large-label-font-size": "var(--van-font-size-md)",
  "--van-cell-large-value-font-size": "inherit",

  /// [VanCellGroup]主题样式
  "--van-cell-group-background": "var(--van-background-2)",
  "--van-cell-group-title-color": "var(--van-text-color-2)",
  "--van-cell-group-title-padding": "var(--van-padding-md) var(--van-padding-md)",
  "--van-cell-group-title-font-size": "var(--van-font-size-md)",
  "--van-cell-group-title-line-height": 16,
  "--van-cell-group-inset-padding": "0 var(--van-padding-md)",
  "--van-cell-group-inset-radius": "var(--van-radius-lg)",
  "--van-cell-group-inset-title-padding": "var(--van-padding-md) var(--van-padding-md)",

  /// [VanImage]主题样式
  "--van-image-placeholder-text-color": "var(--van-text-color-2)",
  "--van-image-placeholder-font-size": "var(--van-font-size-md)",
  "--van-image-placeholder-background": "var(--van-background)",
  "--van-image-loading-icon-size": 32,
  "--van-image-loading-icon-color": "var(--van-gray-4)",
  "--van-image-error-icon-size": 32,
  "--van-image-error-icon-color": "var(--van-gray-4)",

  /// [vanOverlay]
  "--van-overlay-background": Color.fromRGBO(0, 0, 0, 0.7),

  /// [VanPopup]主题样式
  "--van-popup-background": "var(--van-background-2)",
  "--van-popup-transition": "transform var(--van-duration-base)",
  "--van-popup-round-radius": 16,
  "--van-popup-close-icon-size": 22,
  "--van-popup-close-icon-color": "var(--van-gray-5)",
  "--van-popup-close-icon-margin": 16,
  "--van-popup-close-icon-z-index": 1,

  /// [VanCheckbox]主题样式
  "--van-checkbox-icon-size": 20,
  "--van-checkbox-icon-color": "var(--van-gray-5)",
  "--van-checkbox-duration": "var(--van-duration-fast)",
  "--van-checkbox-label-margin": "var(--van-padding-xs)",
  "--van-checkbox-label-color": "var(--van-text-color)",
  "--van-checkbox-checked-icon-color": "var(--van-primary-color)",
  "--van-checkbox-disabled-icon-color": "var(--van-text-color-3)",
  "--van-checkbox-disabled-label-color": "var(--van-text-color-3)",

  /// [VanRadio]主题样式
  "--van-radio-icon-size": 20,
  "--van-radio-icon-color": "var(--van-gray-5)",
  "--van-radio-duration": "var(--van-duration-fast)",
  "--van-radio-label-margin": "var(--van-padding-xs)",
  "--van-radio-label-color": "var(--van-text-color)",
  "--van-radio-checked-icon-color": "var(--van-primary-color)",
  "--van-radio-disabled-icon-color": "var(--van-text-color-3)",
  "--van-radio-disabled-label-color": "var(--van-text-color-3)",

  /// [VanField]主题样式
  "--van-field-label-width": 6.2 * 14,
  "--van-field-label-color": "var(--van-text-color)",
  "--van-field-label-margin-right": "var(--van-padding-sm)",
  "--van-field-input-text-color": "var(--van-text-color)",
  "--van-field-input-error-text-color": "var(--van-danger-color)",
  "--van-field-input-disabled-text-color": "var(--van-text-color-3)",
  "--van-field-placeholder-text-color": "var(--van-text-color-3)",
  "--van-field-icon-size": 18,
  "--van-field-clear-icon-size": 18,
  "--van-field-clear-icon-color": "var(--van-gray-5)",
  "--van-field-right-icon-color": "var(--van-gray-6)",
  "--van-field-error-message-color": "var(--van-danger-color)",
  "--van-field-error-message-font-size": 12,
  "--van-field-text-area-min-height": 60,
  "--van-field-word-limit-color": "var(--van-gray-7)",
  "--van-field-word-limit-font-size": "var(--van-font-size-sm)",
  "--van-field-word-limit-line-height": 16,
  "--van-field-disabled-text-color": "var(--van-text-color-3)",
  "--van-field-required-mark-color": "var(--van-red)",

  /// [VanSwitch]主题样式
  "--van-switch-size": 26,
  "--van-switch-width": "calc(1.8em + 4px)",
  "--van-switch-height": "calc(1em + 4px)",
  "--van-switch-node-size": "1em",
  "--van-switch-node-background": "var(--van-white)",
  "--van-switch-node-shadow": "0 3px 1px 0 rgba(0, 0, 0, 0.05)",
  "--van-switch-background": Color.fromRGBO(120, 120, 128, 0.16),
  "--van-switch-on-background": "var(--van-primary-color)",
  "--van-switch-duration": "var(--van-duration-base)",
  "--van-switch-disabled-opacity": "var(--van-disabled-opacity)",


  /// [VanTag]主题样式
  "--van-tag-padding": "0 var(--van-padding-base)",
  "--van-tag-text-color": "var(--van-white)",
  "--van-tag-font-size": "var(--van-font-size-sm)",
  "--van-tag-radius": 2,
  "--van-tag-line-height": 16,
  "--van-tag-medium-padding": "2 6",
  "--van-tag-large-padding": "var(--van-padding-base) var(--van-padding-xs)",
  "--van-tag-large-radius": "var(--van-radius-md)",
  "--van-tag-large-font-size": "var(--van-font-size-md)",
  "--van-tag-round-radius": "var(--van-radius-max)",
  "--van-tag-danger-color": "var(--van-danger-color)",
  "--van-tag-primary-color": "var(--van-primary-color)",
  "--van-tag-success-color": "var(--van-success-color)",
  "--van-tag-warning-color": "var(--van-warning-color)",
  "--van-tag-default-color": "var(--van-gray-6)",
  "--van-tag-plain-background": "var(--van-background-2)",
};
